package com.ruoyi.cmdb.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cmdb.mapper.TbIdcMapper;
import com.ruoyi.cmdb.domain.TbIdc;
import com.ruoyi.cmdb.service.ITbIdcService;

/**
 * idcService业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-25
 */
@Service
public class TbIdcServiceImpl implements ITbIdcService 
{
    @Autowired
    private TbIdcMapper tbIdcMapper;

    /**
     * 查询idc
     * 
     * @param id idc主键
     * @return idc
     */
    @Override
    public TbIdc selectTbIdcById(String id)
    {
        return tbIdcMapper.selectTbIdcById(id);
    }

    /**
     * 查询idc列表
     * 
     * @param tbIdc idc
     * @return idc
     */
    @Override
    public List<TbIdc> selectTbIdcList(TbIdc tbIdc)
    {
        return tbIdcMapper.selectTbIdcList(tbIdc);
    }

    /**
     * 新增idc
     * 
     * @param tbIdc idc
     * @return 结果
     */
    @Override
    public int insertTbIdc(TbIdc tbIdc)
    {
        return tbIdcMapper.insertTbIdc(tbIdc);
    }

    /**
     * 修改idc
     * 
     * @param tbIdc idc
     * @return 结果
     */
    @Override
    public int updateTbIdc(TbIdc tbIdc)
    {
        return tbIdcMapper.updateTbIdc(tbIdc);
    }

    /**
     * 批量删除idc
     * 
     * @param ids 需要删除的idc主键
     * @return 结果
     */
    @Override
    public int deleteTbIdcByIds(String[] ids)
    {
        return tbIdcMapper.deleteTbIdcByIds(ids);
    }

    /**
     * 删除idc信息
     * 
     * @param id idc主键
     * @return 结果
     */
    @Override
    public int deleteTbIdcById(String id)
    {
        return tbIdcMapper.deleteTbIdcById(id);
    }
}
